PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Fractal / Nested Circle / Martin - QBikal - Surface Turbulence IIe5 (by hakanh mash-up).milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=2 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.980 |
| 8 | fDecay=0.500 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=0 |
| 13 | bAdditiveWaves=1 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=1 |
| 16 | bModWaveAlphaByVolume=1 |
| 17 | bMaximizeWaveColor=1 |
| 18 | bTexWrap=1 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.001 |
| 26 | fWaveScale=0.133 |
| 27 | fWaveSmoothing=0.000 |
| 28 | fWaveParam=-1.000 |
| 29 | fModWaveAlphaStart=1.000 |
| 30 | fModWaveAlphaEnd=1.300 |
| 31 | fWarpAnimSpeed=1.459 |
| 32 | fWarpScale=2.007 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=0.99990 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.01000 |
| 42 | sx=0.99990 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.500 |
| 45 | wave_g=0.500 |
| 46 | wave_b=0.500 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.015 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=1.000 |
| 54 | ib_size=0.260 |
| 55 | ib_r=0.250 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=12.000 |
| 60 | nMotionVectorsY=9.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=0.000 |
| 64 | mv_r=1.000 |
| 65 | mv_g=1.000 |
| 66 | mv_b=1.000 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=0.300 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.000 |
| 75 | wavecode_0_enabled=0 |
| 76 | wavecode_0_samples=512 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=0 |
| 81 | wavecode_0_bAdditive=0 |
| 82 | wavecode_0_scaling=1.00000 |
| 83 | wavecode_0_smoothing=0.50000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=1.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=1.000 |
| 88 | wavecode_1_enabled=0 |
| 89 | wavecode_1_samples=512 |
| 90 | wavecode_1_sep=0 |
| 91 | wavecode_1_bSpectrum=0 |
| 92 | wavecode_1_bUseDots=0 |
| 93 | wavecode_1_bDrawThick=0 |
| 94 | wavecode_1_bAdditive=0 |
| 95 | wavecode_1_scaling=1.00000 |
| 96 | wavecode_1_smoothing=0.50000 |
| 97 | wavecode_1_r=1.000 |
| 98 | wavecode_1_g=1.000 |
| 99 | wavecode_1_b=1.000 |
| 100 | wavecode_1_a=1.000 |
| 101 | wavecode_2_enabled=0 |
| 102 | wavecode_2_samples=512 |
| 103 | wavecode_2_sep=0 |
| 104 | wavecode_2_bSpectrum=0 |
| 105 | wavecode_2_bUseDots=0 |
| 106 | wavecode_2_bDrawThick=0 |
| 107 | wavecode_2_bAdditive=0 |
| 108 | wavecode_2_scaling=1.00000 |
| 109 | wavecode_2_smoothing=0.50000 |
| 110 | wavecode_2_r=1.000 |
| 111 | wavecode_2_g=1.000 |
| 112 | wavecode_2_b=1.000 |
| 113 | wavecode_2_a=1.000 |
| 114 | wavecode_3_enabled=0 |
| 115 | wavecode_3_samples=512 |
| 116 | wavecode_3_sep=0 |
| 117 | wavecode_3_bSpectrum=0 |
| 118 | wavecode_3_bUseDots=0 |
| 119 | wavecode_3_bDrawThick=0 |
| 120 | wavecode_3_bAdditive=0 |
| 121 | wavecode_3_scaling=1.00000 |
| 122 | wavecode_3_smoothing=0.50000 |
| 123 | wavecode_3_r=1.000 |
| 124 | wavecode_3_g=1.000 |
| 125 | wavecode_3_b=1.000 |
| 126 | wavecode_3_a=1.000 |
| 127 | shapecode_0_enabled=1 |
| 128 | shapecode_0_sides=40 |
| 129 | shapecode_0_additive=0 |
| 130 | shapecode_0_thickOutline=1 |
| 131 | shapecode_0_textured=0 |
| 132 | shapecode_0_num_inst=1 |
| 133 | shapecode_0_x=0.500 |
| 134 | shapecode_0_y=0.500 |
| 135 | shapecode_0_rad=0.06623 |
| 136 | shapecode_0_ang=0.00000 |
| 137 | shapecode_0_tex_ang=0.00000 |
| 138 | shapecode_0_tex_zoom=1.79845 |
| 139 | shapecode_0_r=0.000 |
| 140 | shapecode_0_g=0.000 |
| 141 | shapecode_0_b=0.000 |
| 142 | shapecode_0_a=0.100 |
| 143 | shapecode_0_r2=0.000 |
| 144 | shapecode_0_g2=0.000 |
| 145 | shapecode_0_b2=0.000 |
| 146 | shapecode_0_a2=0.000 |
| 147 | shapecode_0_border_r=1.000 |
| 148 | shapecode_0_border_g=1.000 |
| 149 | shapecode_0_border_b=0.000 |
| 150 | shapecode_0_border_a=0.000 |
| 151 | shape_0_init1=bob = 1.5; |
| 152 | shape_0_init2=ro = 0; |
| 153 | shape_0_init3=red = rand(20); |
| 154 | shape_0_per_frame1=vol = 1 + 0.2*((bass_att+treb_att+mid_att)/3); |
| 155 | shape_0_per_frame2=bob = bob*above(bob,0.01) - 0.01 + 1*(1 - above(bob,0.01)); |
| 156 | shape_0_per_frame3=bob = 0.4 + 0.4*sin(time*0.8); |
| 157 | shape_0_per_frame4=bob = bob*vol; |
| 158 | shape_0_per_frame5=//rad = bob; |
| 159 | shape_0_per_frame6=border_1 = 0.4; |
| 160 | shape_0_per_frame7=sides = 30; |
| 161 | shape_0_per_frame8=ro = ro + 0.02; |
| 162 | shape_0_per_frame9=ang = ro; |
| 163 | shape_0_per_frame10=//rad = 0.6; |
| 164 | shape_0_per_frame11= |
| 165 | shape_0_per_frame12=sp = red*0.025; |
| 166 | shape_0_per_frame13=spi = 0.5 - sp; |
| 167 | shape_0_per_frame14=tm = time*0.1; |
| 168 | shape_0_per_frame15=border_r = 0.5 + sp*sin(tm*0.6) + spi*cos(tm*1.46); |
| 169 | shape_0_per_frame16=border_g = 0.5 + sp*sin(tm*1.294) + spi*cos(tm*0.87); |
| 170 | shape_0_per_frame17=border_b = 0.5 + sp*sin(tm*1.418) + spi*cos(tm*0.76); |
| 171 | shape_0_per_frame18= |
| 172 | shapecode_1_enabled=1 |
| 173 | shapecode_1_sides=40 |
| 174 | shapecode_1_additive=1 |
| 175 | shapecode_1_thickOutline=0 |
| 176 | shapecode_1_textured=0 |
| 177 | shapecode_1_num_inst=4 |
| 178 | shapecode_1_x=0.500 |
| 179 | shapecode_1_y=0.500 |
| 180 | shapecode_1_rad=0.10000 |
| 181 | shapecode_1_ang=0.00000 |
| 182 | shapecode_1_tex_ang=0.00000 |
| 183 | shapecode_1_tex_zoom=1.00000 |
| 184 | shapecode_1_r=1.000 |
| 185 | shapecode_1_g=1.000 |
| 186 | shapecode_1_b=1.000 |
| 187 | shapecode_1_a=1.000 |
| 188 | shapecode_1_r2=0.000 |
| 189 | shapecode_1_g2=0.000 |
| 190 | shapecode_1_b2=0.000 |
| 191 | shapecode_1_a2=0.000 |
| 192 | shapecode_1_border_r=1.000 |
| 193 | shapecode_1_border_g=1.000 |
| 194 | shapecode_1_border_b=1.000 |
| 195 | shapecode_1_border_a=0.000 |
| 196 | shape_1_per_frame1=x = 0.5 + 0.225*sin(time /instance*0.7); |
| 197 | shape_1_per_frame2=y = 0.5 + 0.3*cos(time /instance*0.7); |
| 198 | shape_1_per_frame3=x = x- 0.4*x*sin(time); |
| 199 | shape_1_per_frame4=y = y- 0.4*y*cos(time); |
| 200 | shape_1_per_frame5= |
| 201 | shape_1_per_frame6= |
| 202 | shape_1_per_frame7= |
| 203 | shape_1_per_frame8=rad = rad*mid_att; |
| 204 | shape_1_per_frame9=r = 0.5 + 0.5*sin(frame*0.5); |
| 205 | shape_1_per_frame10=b = 0.5 + 0.5*sin(frame*0.5 + 2.094); |
| 206 | shape_1_per_frame11=g = 0.5 + 0.5*sin(frame*0.5 + 4.188); |
| 207 | shape_1_per_frame12= |
| 208 | shapecode_2_enabled=1 |
| 209 | shapecode_2_sides=40 |
| 210 | shapecode_2_additive=1 |
| 211 | shapecode_2_thickOutline=0 |
| 212 | shapecode_2_textured=0 |
| 213 | shapecode_2_num_inst=1 |
| 214 | shapecode_2_x=0.500 |
| 215 | shapecode_2_y=0.500 |
| 216 | shapecode_2_rad=0.10000 |
| 217 | shapecode_2_ang=0.00000 |
| 218 | shapecode_2_tex_ang=0.00000 |
| 219 | shapecode_2_tex_zoom=1.00000 |
| 220 | shapecode_2_r=1.000 |
| 221 | shapecode_2_g=1.000 |
| 222 | shapecode_2_b=1.000 |
| 223 | shapecode_2_a=1.000 |
| 224 | shapecode_2_r2=0.000 |
| 225 | shapecode_2_g2=0.000 |
| 226 | shapecode_2_b2=0.000 |
| 227 | shapecode_2_a2=0.000 |
| 228 | shapecode_2_border_r=1.000 |
| 229 | shapecode_2_border_g=1.000 |
| 230 | shapecode_2_border_b=1.000 |
| 231 | shapecode_2_border_a=0.000 |
| 232 | shape_2_per_frame1=x = 0.5 + 0.5*(sin(time*1.1)*0.3 + 0.7*sin(time*0.5)); |
| 233 | shape_2_per_frame2=x = 0.5 + 0.225*sin(time + 2.09); |
| 234 | shape_2_per_frame3=y = 0.5 + 0.3*cos(time + 2.09); |
| 235 | shape_2_per_frame4= |
| 236 | shape_2_per_frame5=rad = rad*bass_att; |
| 237 | shape_2_per_frame6=r = 0.5 + 0.5*sin(frame*0.5); |
| 238 | shape_2_per_frame7=b = 0.5 + 0.5*sin(frame*0.5 + 2.094); |
| 239 | shape_2_per_frame8=g = 0.5 + 0.5*sin(frame*0.5 + 4.188); |
| 240 | shape_2_per_frame9= |
| 241 | shapecode_3_enabled=1 |
| 242 | shapecode_3_sides=40 |
| 243 | shapecode_3_additive=1 |
| 244 | shapecode_3_thickOutline=0 |
| 245 | shapecode_3_textured=0 |
| 246 | shapecode_3_num_inst=5 |
| 247 | shapecode_3_x=0.500 |
| 248 | shapecode_3_y=0.500 |
| 249 | shapecode_3_rad=0.07419 |
| 250 | shapecode_3_ang=0.00000 |
| 251 | shapecode_3_tex_ang=0.00000 |
| 252 | shapecode_3_tex_zoom=1.00000 |
| 253 | shapecode_3_r=1.000 |
| 254 | shapecode_3_g=1.000 |
| 255 | shapecode_3_b=1.000 |
| 256 | shapecode_3_a=1.000 |
| 257 | shapecode_3_r2=0.000 |
| 258 | shapecode_3_g2=0.000 |
| 259 | shapecode_3_b2=0.000 |
| 260 | shapecode_3_a2=0.000 |
| 261 | shapecode_3_border_r=1.000 |
| 262 | shapecode_3_border_g=1.000 |
| 263 | shapecode_3_border_b=1.000 |
| 264 | shapecode_3_border_a=0.000 |
| 265 | shape_3_per_frame1=//x = 0.5 + 0.5*(sin(time*1.1)*0.3 + 0.7*sin(time*0.5)); |
| 266 | shape_3_per_frame2=x = 0.5 + 0.225*sin(time /instance); |
| 267 | shape_3_per_frame3=y = 0.5 + 0.3*cos(time /instance); |
| 268 | shape_3_per_frame4=x = x+ 0.4*x*sin(time); |
| 269 | shape_3_per_frame5=y = y+ 0.4*y*cos(time); |
| 270 | shape_3_per_frame6= |
| 271 | shape_3_per_frame7= |
| 272 | shape_3_per_frame8=//x = x+(0.1*q3)*sin((instance*2.4)); |
| 273 | shape_3_per_frame9=//y = y+(0.1*q4)*cos((instance*2.4)); |
| 274 | shape_3_per_frame10= |
| 275 | shape_3_per_frame11= |
| 276 | shape_3_per_frame12=rad = rad*treb_att; |
| 277 | shape_3_per_frame13=r = 0.5 + 0.5*sin(frame*0.5); |
| 278 | shape_3_per_frame14=b = 0.5 + 0.5*sin(frame*0.5 + 2.094); |
| 279 | shape_3_per_frame15=g = 0.5 + 0.5*sin(frame*0.5 + 4.188); |
| 280 | shape_3_per_frame16= |
| 281 | per_frame_init_1=index = 0; |
| 282 | per_frame_init_2=loop (70000, |
| 283 | per_frame_init_3= megabuf(index) = 0; |
| 284 | per_frame_init_4= gmegabuf(index) = 0; |
| 285 | per_frame_init_5= index = index + 1; |
| 286 | per_frame_init_6=); |
| 287 | per_frame_init_7= |
| 288 | per_frame_init_8=zang = 1; |
| 289 | per_frame_init_9= |
| 290 | per_frame_init_10=yang = 0; |
| 291 | per_frame_init_11=zang = 2; |
| 292 | per_frame_1=xlen = 45; ylen = 45; flen = 20; reg00 = xlen*ylen/4; reg01=reg00/4; |
| 293 | per_frame_2=dec_med = 1-0.06*30/fps; dec_slow = 1-0.02*30/fps; dec_f = pow (0.8, 30/fps); |
| 294 | per_frame_3=q30 = dec_slow; |
| 295 | per_frame_4=smooth = max(1,pow(6,fps/30)-2); // >= 0; Ausbreitungsgeschwindigkeit |
| 296 | per_frame_5= |
| 297 | per_frame_6=//"Classic" beat reaction |
| 298 | per_frame_7=cbeat = bass+mid+treb; |
| 299 | per_frame_8=decc = if (vol>cbeat,0.8,dec_med); |
| 300 | per_frame_9=vol = vol * decc + (1-decc)*cbeat; |
| 301 | per_frame_10=avg = avg*dec_slow + cbeat*(1-dec_slow); |
| 302 | per_frame_11=is_beat = above(cbeat, 1.5*avg) * above (time, tc0+.2); |
| 303 | per_frame_12=tc0 = if (bor(is_beat, bd_bt),time,tc0); |
| 304 | per_frame_13=peak = if (is_beat,cbeat,peak*dec_med); |
| 305 | per_frame_14= |
| 306 | per_frame_15= |
| 307 | per_frame_16=//Gleichanteil entfernen und normalisieren |
| 308 | per_frame_17=ind = 0; sum = 0; amp = 0.01; |
| 309 | per_frame_18=loop (reg01, |
| 310 | per_frame_19= sum = sum + gmegabuf(ind+30000)/(reg01); |
| 311 | per_frame_20= amp = amp + pow(gmegabuf(ind+30000),2); |
| 312 | per_frame_21= ind = ind+1; |
| 313 | per_frame_22=); |
| 314 | per_frame_23=ind = 0; amp_= amp_*dec_med + (1-dec_med)*sqrt(amp)/reg01*600; |
| 315 | per_frame_24=loop (reg01, |
| 316 | per_frame_25= megabuf(ind+30000)= (gmegabuf(ind+30000)-sum)/amp_; |
| 317 | per_frame_26= ind = ind+1; |
| 318 | per_frame_27=); |
| 319 | per_frame_28= |
| 320 | per_frame_29=// Spectrum of spectrum ! |
| 321 | per_frame_30=index2 = 0; |
| 322 | per_frame_31=loop(flen, //Frequency step |
| 323 | per_frame_32= index=0; real= 0; imag = 0; |
| 324 | per_frame_33= loop (flen, |
| 325 | per_frame_34= real = real + cos(index/flen*6.28*index2)*megabuf(index*reg01/8+30002); |
| 326 | per_frame_35= imag = imag + sin(index/flen*6.28*index2)*megabuf(index*reg01/8+30002); |
| 327 | per_frame_36= index=index+1; |
| 328 | per_frame_37= ); |
| 329 | per_frame_38= megabuf(10000+index2)= megabuf(10000+index2) * dec_f + real; |
| 330 | per_frame_39= megabuf(15000+index2)= megabuf(15000+index2) * dec_f + imag; |
| 331 | per_frame_40= index2 = index2+1; |
| 332 | per_frame_41= ); |
| 333 | per_frame_42= |
| 334 | per_frame_43=//Anregung |
| 335 | per_frame_44=ind = 1; |
| 336 | per_frame_45=loop (flen/2, |
| 337 | per_frame_46= cx = megabuf(10000+ind); |
| 338 | per_frame_47= cy = megabuf(15000+ind); |
| 339 | per_frame_48= yind = -1; |
| 340 | per_frame_49= loop (3, |
| 341 | per_frame_50= xind = -1; |
| 342 | per_frame_51= loop (3, |
| 343 | per_frame_52= ox = ((cx+.5)*xlen+xind)%xlen; |
| 344 | per_frame_53= oy = ((cy+.5)*ylen+yind)%ylen; |
| 345 | per_frame_54= amp = (cx*cx+cy*cy)*3; |
| 346 | per_frame_55= megabuf (oy*ylen+ox) = megabuf (oy*ylen+ox) |
| 347 | per_frame_56= - 2*30/fps*sqrt(amp)*above(amp,.02)/(1+xind*xind+yind*yind); |
| 348 | per_frame_57= xind = xind+1; |
| 349 | per_frame_58= ); |
| 350 | per_frame_59= yind = yind+1; |
| 351 | per_frame_60= ); |
| 352 | per_frame_61= ind = ind+1; |
| 353 | per_frame_62=); |
| 354 | per_frame_63= |
| 355 | per_frame_64=//Simulation |
| 356 | per_frame_65=yind = 0; |
| 357 | per_frame_66=loop (ylen, |
| 358 | per_frame_67= xind = 0; |
| 359 | per_frame_68= loop (xlen, |
| 360 | per_frame_69= megabuf(yind*ylen+xind+5000) = //megabuf ab 5000 ist nur Zwischenspeicher |
| 361 | per_frame_70= dec_med*((gmegabuf(yind*ylen+(xind+1)%xlen) + |
| 362 | per_frame_71= gmegabuf(yind*ylen+(xlen+xind-1)%xlen) + |
| 363 | per_frame_72= gmegabuf(((yind+1)%ylen)*ylen+xind) + |
| 364 | per_frame_73= gmegabuf(((yind+ylen-1)%ylen)*ylen+xind) |
| 365 | per_frame_74= +gmegabuf(yind*ylen+xind)*smooth*4)/(2+2*smooth) - megabuf(yind*ylen+xind)); |
| 366 | per_frame_75= xind = xind+1; |
| 367 | per_frame_76= ); |
| 368 | per_frame_77= yind = yind+1; |
| 369 | per_frame_78=); |
| 370 | per_frame_79= |
| 371 | per_frame_80=//Projektionsparameter |
| 372 | per_frame_81= |
| 373 | per_frame_82=bindex += is_beat; |
| 374 | per_frame_83= |
| 375 | per_frame_84=if (is_beat && (bindex%4==0), ran2 = (rand(100)-50)/50,0 ); |
| 376 | per_frame_85=if (is_beat && (bindex%4==2), ran3 = (rand(100)-50)/50,0 ); |
| 377 | per_frame_86=if (is_beat && (bindex%6==5), ran4 = (rand(100)-50)/50,0 ); |
| 378 | per_frame_87= |
| 379 | per_frame_88=trelx += ran2/fps/18; |
| 380 | per_frame_89=trely += ran3/fps/2; |
| 381 | per_frame_90=trelz += ran4/fps/6; |
| 382 | per_frame_91=zang = 6*sin(trelz); |
| 383 | per_frame_92=xang = 6*sin(zang/5+trelx); |
| 384 | per_frame_93=yang = 6*sin(zang/3*0+trely); |
| 385 | per_frame_94= |
| 386 | per_frame_95=q1 = cos(xang);q2 = sin(xang);q3 = cos(yang); |
| 387 | per_frame_96=q4 = sin(yang);q5 = cos(zang);q6 = sin(zang); |
| 388 | per_frame_97=fov = 1; |
| 389 | per_frame_98= |
| 390 | per_frame_99=//Umkopieren und Projektion |
| 391 | per_frame_100=yind = 0; |
| 392 | per_frame_101=loop (ylen, |
| 393 | per_frame_102= xind = 0; |
| 394 | per_frame_103= loop (xlen, |
| 395 | per_frame_104= ind = yind*ylen+xind; |
| 396 | per_frame_105= megabuf(ind) = gmegabuf(ind); |
| 397 | per_frame_106= gmegabuf(ind) = megabuf(ind+5000); |
| 398 | per_frame_107= oz = yind - ylen/2; //# |
| 399 | per_frame_108= ox = if(bnot(yind%2),xind,xlen-xind-1); |
| 400 | per_frame_109= oy0a = (oy0+oy0a)/2.5; |
| 401 | per_frame_110= oy = gmegabuf(yind*ylen+ox); oy0 = oy; |
| 402 | per_frame_111= ox = ox - xlen/2; |
| 403 | per_frame_112= mx = ox*q5 - oy*q6; my = ox*q6 + oy*q5; |
| 404 | per_frame_113= ox = mx; oy = my; |
| 405 | per_frame_114= mx = ox*q3 + oz*q4; mz = - ox*q4 + oz*q3; |
| 406 | per_frame_115= ox = mx; oz = mz; |
| 407 | per_frame_116= my = oy*q1 - oz*q2; mz = oy*q2 + oz*q1; |
| 408 | per_frame_117= z0 = (10*sin(trelz*14)); |
| 409 | per_frame_118= oy = my; oz = mz+z0; |
| 410 | per_frame_119= gmegabuf(10000+ind) = fov*ox/(oz+60*fov)+.5; |
| 411 | per_frame_120= gmegabuf(15000+ind) = fov*oy/(oz+60*fov)+.5; |
| 412 | per_frame_121= hell= max(min(.5+oy0/4,1),0.2); //Helligkeit |
| 413 | per_frame_122= gmegabuf(20000+ind) = max(min(hell* (.5+ (oy0a-oy0)*0.1),1),0.1); |
| 414 | per_frame_123= gmegabuf(25000+ind) = oy0/16+.5;; |
| 415 | per_frame_124= xind = xind+1; |
| 416 | per_frame_125= ); |
| 417 | per_frame_126= yind = yind+1; |
| 418 | per_frame_127=); |
| 419 | per_frame_128= |
| 420 | per_frame_129=q29 = 10/(z0+15); |
| 421 | per_frame_130=q32 = aspecty; |
| 422 | per_frame_131=q28 = min (vol/3-0.25,1); |
| 423 | per_frame_132=monitor = q28; |
| 424 | per_pixel_1=rot = 0; zoom = 1.1; warp = 0; dy = 0.02; |
| 425 | warp_1=`shader_body |
| 426 | warp_2=`{ |
| 427 | warp_3=` // sample previous frame 3 times, creating angular blur |
| 428 | warp_4=` float2 v = normalize(uv - 0.5); |
| 429 | warp_5=` v = v.yx * float2(1,-1); |
| 430 | warp_6=` v *= texsize.zw*3; |
| 431 | warp_7=` ret = 0.2*( tex2D( sampler_main, uv ).xyz |
| 432 | warp_8=` + tex2D(sampler_main, uv + v ).xyz |
| 433 | warp_9=` + tex2D(sampler_main, uv - v).xyz |
| 434 | warp_10=` + tex2D(sampler_main, uv + v*2 ).xyz |
| 435 | warp_11=` + tex2D(sampler_main, uv - v*2).xyz |
| 436 | warp_12=` ); |
| 437 | warp_13=` |
| 438 | warp_14=` ret *= 1 + 0.02*cos(rad*177); |
| 439 | warp_15=` |
| 440 | warp_16=` // darken over time |
| 441 | warp_17=` ret *= 0.98; //or try: ret -= 0.004; |
| 442 | warp_18=`} |
| 443 | comp_1=`float3 ret1, neu, blur; |
| 444 | comp_2=` |
| 445 | comp_3=`shader_body |
| 446 | comp_4=`{ |
| 447 | comp_5=`float2 uv2; |
| 448 | comp_6=`float ang2, c, s; |
| 449 | comp_7=`uv -= .5; |
| 450 | comp_8=`uv *= aspect.xy; |
| 451 | comp_9=` |
| 452 | comp_10=`float dist = 1; |
| 453 | comp_11=`float bdist = 1; |
| 454 | comp_12=`float inten = 1; |
| 455 | comp_13=`ret1 = 0; |
| 456 | comp_14=`int anz = 1+saturate (q5)*6; |
| 457 | comp_15=`float n = 1; |
| 458 | comp_16=`while (n <= anz) { |
| 459 | comp_17=` ang2 = n/anz*3.14; |
| 460 | comp_18=` c = cos(ang2); |
| 461 | comp_19=` s = sin(ang2); |
| 462 | comp_20=` uv2.x = uv.x*c - uv.y*s; |
| 463 | comp_21=` uv2.y = uv.x*s + uv.y*c; |
| 464 | comp_22=` uv2 *= aspect.yx*.3; |
| 465 | comp_23=` float2 uv3 = frac(3*uv2*dist + .5 );; |
| 466 | comp_24=`uv3=abs(frac(uv3+.5)-.5) ; |
| 467 | comp_25=` neu = GetPixel (uv3+.0)*1 + 0*GetBlur1(uv3); |
| 468 | comp_26=` |
| 469 | comp_27=` ret1 = max(ret1,neu*2); |
| 470 | comp_28=`n++; |
| 471 | comp_29=`} |
| 472 | comp_30=`ret = ret1*ret1; |
| 473 | comp_31=`ret = 1-exp(-ret*2+0.1); |
| 474 | comp_32=`} |